﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ItemShow.aspx.cs" Inherits="Admin_ProductMgr_ItemShow" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>产品管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="opertionbar">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        <asp:DropDownList ID="drpDisable" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="drpDisable_SelectedIndexChanged1">
                            <asp:ListItem>出售中</asp:ListItem>
                            <asp:ListItem>停售</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnDisable" runat="server" Text="" OnClick="btnDisable_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
        <div id="itemshow">
            <asp:GridView ID="ItemGridView" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="ckbSelect" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ItemId" HeaderText="ID" />
                    <asp:BoundField DataField="Name" HeaderText="产品名称" />
                    <asp:BoundField DataField="CategoryId" HeaderText="所在类别" />
                    <asp:BoundField DataField="TableName" HeaderText="数据表名" />
                    <asp:TemplateField HeaderText="属性修改">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlOperation" runat="server" NavigateUrl='<%# "~/Admin/ItemMgr/AddProperty.aspx?id="+Eval("ItemId")+"&TableName="+Eval("TableName")  %>'>操作</asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div id="additem">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                        产品名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtItemName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        所属类别：
                    </td>
                    <td>
                        <asp:DropDownList ID="drpCategory" runat="server" 
                          >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        数据表名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTableName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dxe:ASPxButton ID="btnAdd" runat="server" Text="添加产品" OnClick="btnAdd_Click">
                        </dxe:ASPxButton>
                    </td>
                    <td>
                        <dxe:ASPxButton ID="btnReset" runat="server" Text="重置">
                        </dxe:ASPxButton>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
